package com.example.democrud.enums;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.ToString;


@Getter
@ToString
@AllArgsConstructor
public enum ResponseEnum {
    ERROR(-1,"未知错误"),
    SUCCESS(0,"成功"),
    HTTP_REQUEST_METHOD_ERRER(11,"http请求方法有误"),
    DB_CREATE_ERROR(101,"数据库新增报错"),
    DB_UPDATE_ERROR(102,"数据库跟新错误"),
    DB_DELETE_ERROR(103,"数据库删除错误"),
    DB_RETRIEVE_ERROR(104,"数据库检索错误"),
    NAME_PASSWORD_ERROR(105,"用户名或者密码错误"),;
    private final Integer code;
    private final String desc ;
}
